package me.zhengjie.modules.transformer.history.repository;

import me.zhengjie.modules.transformer.history.domain.FdsRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface FdsRecordRepository extends JpaRepository<FdsRecord,Integer> {
    @Query(value = "select max(record_id) from fds_record",nativeQuery = true)
    Integer findNewRecordId();
    @Query(value = "select record_id from fds_record",nativeQuery = true)
    List<Integer> getAllRecordId();
}
